package com.warm.pump.module.skd.service;

import com.warm.pump.frame.gen.bean.PageBean;
import com.warm.pump.module.skd.bean.po.gen.ScheduleJob;

import java.util.List;
import java.util.Map;

/**
 * skd_job
 */
public interface IScheduleJobService {

    ScheduleJob queryObject(Long id);

    ScheduleJob queryObject(Map<String, Object> map);

    List<ScheduleJob> queryList(Map<String, Object> map);

    PageBean getPageBeanByMap(Map map, int pageNo, int pageSize);

    int queryTotal(Map<String, Object> map);

    void save(ScheduleJob scheduleJob);

    void update(ScheduleJob scheduleJob);

    void delete(Map<String, Object> map);

    void delete(Long id);

    void deleteBatch(Long[] ids);

    /**
     * 立即执行
     */
    void run(Long[] ids);
    void  run(Long id, String params);

    void pause(Long[] ids);

    void resume(Long[] ids);

    boolean updateBatch(Long[] ids, int status);
    void createInstBySdkJob(Long skdJobId);
}
